home *** CD-ROM | disk | FTP | other *** search
/ Adobe Graphics & Publishing SDK 1996 December / Adobe Graphics & Publishing SDK 1996 December.iso / mac / PageMaker 6.5 SDK Mac / SourceCode / UtilityCode / OldMain.cpp next >
C/C++ Source or Header  |  1996-09-04  |  802b  |  30 lines

  1. /******************************************************************
  2.  *  oldmain.c 
  3.  *
  4.  *    Copyright (C) 1996, Adobe Systems Incorporated, All rights reserved.
  5.  *
  6.  *  This file contains the old DllMain() & Main() functions, which
  7.  *  are typically included in the plugin's main .cpp file, but 
  8.  *  were not there for the old plugins.
  9.  ******************************************************************/ 
  10. #include "PMPlugin.h"
  11.  
  12. PMBool WINAPI DllMain(HINSTANCE hInstance, ULONG ul_reason, LPVOID lpvReserved)
  13. {
  14.     hDllInstance = hInstance;        /* save the Instance in a global var */
  15.  
  16.     switch(ul_reason)
  17.     {
  18.         case DLL_PROCESS_ATTACH:
  19.             break;
  20.         case DLL_THREAD_ATTACH:
  21.             break;
  22.         case DLL_THREAD_DETACH:
  23.             break;
  24.         case DLL_PROCESS_DETACH:
  25.             break;
  26.     }
  27.     return TRUE;
  28. }
  29.  
  30.